import request from '@/utils/request'

export const getListAPI=(params)=>{
    return request({
        url:'/questions',
        params
    })
}

export const delListAPI=(id)=>request({
    url:'/questions/'+id,
    method:'DELETE'
})

export const editListAPI=(id)=>request({
    url:`/questions/`+id
})

export const updataListAPI=(id)=>request({
    url:`/questions/${id}?id=${id}`
})

export const choiceListApi=(id)=>request({
    url:`/questions/choice/${id}/1`,
    method:'PATCH'
})
